import { MutableRefObject } from 'react';
import { extendApi } from '@inbiz/utils';
import { IProps, LoProps } from './index';

export default extendApi(
  (_events: MutableRefObject<IProps['callBackEvents']>, getTableData: (param: LoProps) => void) => {
    return {
      loadListData: (param: LoProps) => {
        getTableData(param);
      },
    };
  },
);
